package com.bjpowernode.rbac.service.impl;

import com.bjpowernode.rbac.entity.Customer;
import com.bjpowernode.rbac.entity.SystemDictionaryItem;
import com.bjpowernode.rbac.mapper.SystemDictionaryItemMapper;
import com.bjpowernode.rbac.query.CustomerQuery;
import com.bjpowernode.rbac.service.SystemDictionaryItemService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jy
 * @version 1.0
 * @date 2022/2/11 13:53
 */
@Service
public class SystemDictionaryItemServiceImpl implements SystemDictionaryItemService {

    @Autowired
    private SystemDictionaryItemMapper systemDictionaryItemMapper;

    @Override
    public PageInfo<SystemDictionaryItem> selectJob() {
        List<SystemDictionaryItem> list = systemDictionaryItemMapper.selectJobByCondition();
        return new PageInfo<>(list);
    }

    @Override
    public PageInfo<SystemDictionaryItem> selectSource() {
        List<SystemDictionaryItem> list = systemDictionaryItemMapper.selectSourceByCondition();
        return new PageInfo<>(list);
    }

    @Override
    public List<SystemDictionaryItem> selectAllTypes() {
        return systemDictionaryItemMapper.selectAllTypes();
    }

    @Override
    public List<SystemDictionaryItem> selectAllJobs() {
        return systemDictionaryItemMapper.selectAllJobs();
    }

    @Override
    public List<SystemDictionaryItem> selectAllSources() {
        return systemDictionaryItemMapper.selectAllSources();
    }

    @Override
    public List<SystemDictionaryItem> selectAllTraceTypeIds() {
        return systemDictionaryItemMapper.selectAllTraceTypeIds();
    }

    @Override
    public List<SystemDictionaryItem> selectAllTraceResults() {
        return systemDictionaryItemMapper.selectAllTraceResults();
    }
}
